/**
 * 
 */
package com.vivid.dynamics.oknow.dao;

import java.io.Serializable;

import com.vivid.dynamics.oknow.model.UserCategory;

/**
 *
 * @author jason
 * created at:: Aug 12, 2011 3:51:33 PM
 */
public interface IUserCategoryDAO {
	/**
	 * method to retrieve the UserCategory based on the pId
	 * @param pId
	 * @return
	 * @author jason
	 * created at:: Aug 12, 2011  3:53:04 PM
	 */
	public UserCategory getUserCategoryByKey(int pId);
	/**
	 * method to add a new UserCategory to the datasource
	 * @param pCategory
	 * @return
	 * @author jason
	 * created at:: Aug 12, 2011  3:53:25 PM
	 */
	public Serializable newUserCateogry(final UserCategory pCategory);
	/**
	 * method to update the given UserCategory
	 * @param pCategory
	 * @author jason
	 * created at:: Aug 12, 2011  3:53:41 PM
	 */
	public void updateUserCategory(final UserCategory pCategory);
	/**
	 * method to delete the given UserCategory
	 * @param pCategory
	 * @author jason
	 * created at:: Aug 12, 2011  3:53:58 PM
	 */
	public void deleteUserCategory(final UserCategory pCategory);
}
